package com.sfac.common.vo;

import lombok.Data;

import java.util.List;

/**
 * 返回给前端页面的结果集
 * @param <T>
 */
@Data
public class Result<T> {


    private int status;
    private String msg;
    private List<T> dataList;
    private T data;


    public Result(int status, String msg, List<T> dataList) {
        this.status = status;
        this.msg = msg;
        this.dataList = dataList;
    }

    public Result(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Result(int status, String msg, T data) {
        this.status = status;
        this.msg = msg;
        this.data = data;
    }

}
